home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / bay / Bay.jar / Sprite.class (.txt) < prev   
Encoding:
Java Class File  |  2002-01-11  |  965 b   |  60 lines

  1. public class Sprite {
  2.    protected int frame;
  3.    protected int positionX;
  4.    protected int positionY;
  5.    protected int width;
  6.    protected int height;
  7.    protected int velocityX;
  8.    protected int velocityY;
  9.    protected int boundsX;
  10.    protected int boundsY;
  11.    protected int boundsWidth;
  12.    protected int boundsHeight;
  13.  
  14.    public Sprite(int var1, int var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10) {
  15.       this.setPosition(var1, var2);
  16.       this.width = var5;
  17.       this.height = var6;
  18.       this.setVelocity(var3, var4);
  19.       this.frame = 0;
  20.       this.boundsX = var7;
  21.       this.boundsY = var8;
  22.       this.boundsWidth = var9;
  23.       this.boundsHeight = var10;
  24.    }
  25.  
  26.    public int getHeight() {
  27.       return this.height;
  28.    }
  29.  
  30.    public int getPositionX() {
  31.       return this.positionX;
  32.    }
  33.  
  34.    public int getPositionY() {
  35.       return this.positionY;
  36.    }
  37.  
  38.    public int getVelocityX() {
  39.       return this.velocityX;
  40.    }
  41.  
  42.    public int getVelocityY() {
  43.       return this.velocityY;
  44.    }
  45.  
  46.    public int getWidth() {
  47.       return this.width;
  48.    }
  49.  
  50.    public void setPosition(int var1, int var2) {
  51.       this.positionX = var1;
  52.       this.positionY = var2;
  53.    }
  54.  
  55.    public void setVelocity(int var1, int var2) {
  56.       this.velocityX = var1;
  57.       this.velocityY = var2;
  58.    }
  59. }
  60.